<!DOCTYPE html>



  


<html class="theme-next pisces use-motion" lang="zh-Hans">
<head><meta name="generator" content="Hexo 3.9.0">
  <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css">







<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css">

<link href="/css/main.css?v=5.1.4" rel="stylesheet" type="text/css">


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16.png?v=5.1.4">


  <link rel="mask-icon" href="/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="Hexo, NexT">










<meta name="description" content="参考原文 DOM添加子节点 ‘&amp;gt;’ 语法：  1div&amp;gt;ul&amp;gt;li  结果：  12345&amp;lt;div&amp;gt;	&amp;lt;ul&amp;gt;		&amp;lt;li&amp;gt;&amp;lt;/li&amp;gt;	&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt; 兄弟节点 ‘+’ 语法：  1div+p  结果：  12&amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt; 上线节点">
<meta property="og:type" content="article">
<meta property="og:title" content="Emmet(Zencoding)语法">
<meta property="og:url" content="http://yoursite.com/2018/05/02/Emmet-Zencoding-语法/index.html">
<meta property="og:site_name" content="春风自是人间客">
<meta property="og:description" content="参考原文 DOM添加子节点 ‘&amp;gt;’ 语法：  1div&amp;gt;ul&amp;gt;li  结果：  12345&amp;lt;div&amp;gt;	&amp;lt;ul&amp;gt;		&amp;lt;li&amp;gt;&amp;lt;/li&amp;gt;	&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt; 兄弟节点 ‘+’ 语法：  1div+p  结果：  12&amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt; 上线节点">
<meta property="og:locale" content="zh-Hans">
<meta property="og:updated_time" content="2020-07-26T14:24:06.082Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Emmet(Zencoding)语法">
<meta name="twitter:description" content="参考原文 DOM添加子节点 ‘&amp;gt;’ 语法：  1div&amp;gt;ul&amp;gt;li  结果：  12345&amp;lt;div&amp;gt;	&amp;lt;ul&amp;gt;		&amp;lt;li&amp;gt;&amp;lt;/li&amp;gt;	&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt; 兄弟节点 ‘+’ 语法：  1div+p  结果：  12&amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt; 上线节点">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Pisces',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: "",
      labels: ""
    }
  };
</script>



  <link rel="canonical" href="http://yoursite.com/2018/05/02/Emmet-Zencoding-语法/">





  <title>Emmet(Zencoding)语法 | 春风自是人间客</title>
  








</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">春风自是人间客</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <h1 class="site-subtitle" itemprop="description">是非成败转头空，青山依旧在，几度夕阳红。</h1>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives" rel="section">
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories" rel="section">
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-program">
          <a href="/categories/program" rel="section">
            
            程序
          </a>
        </li>
      
        
        <li class="menu-item menu-item-reading">
          <a href="/categories/reading" rel="section">
            
            阅读
          </a>
        </li>
      
        
        <li class="menu-item menu-item-idea">
          <a href="/categories/idea" rel="section">
            
            想法
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags" rel="section">
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about" rel="section">
            
            关于我
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://yoursite.com/2018/05/02/Emmet-Zencoding-语法/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="彭丹丹">
      <meta itemprop="description" content>
      <meta itemprop="image" content="https://upload.jianshu.io/users/upload_avatars/830956/debe5156eed7?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="春风自是人间客">
    </span>

    
      <header class="post-header">

        
        
          <h2 class="post-title" itemprop="name headline">Emmet(Zencoding)语法</h2>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2018-05-02T10:51:17+08:00">
                2018-05-02
              </time>
            

            

            
          </span>

          
            <span class="post-category">
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/program/" itemprop="url" rel="index">
                    <span itemprop="name">program</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
          

          
          

          

          
            <div class="post-wordcount">
              
                
                <span class="post-meta-item-icon">
                  <i class="fa fa-file-word-o"></i>
                </span>
                
                  <span class="post-meta-item-text">字数统计&#58;</span>
                
                <span title="字数统计">
                  733
                </span>
              

              
                <span class="post-meta-divider">|</span>
              

              
                <span class="post-meta-item-icon">
                  <i class="fa fa-clock-o"></i>
                </span>
                
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                
                <span title="阅读时长">
                  4
                </span>
              
            </div>
          

          
          
        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <p><a href="https://blog.csdn.net/seasunexpect/article/details/71124299" target="_blank" rel="noopener">参考原文</a></p>
<h1 id="DOM添加"><a href="#DOM添加" class="headerlink" title="DOM添加"></a>DOM添加</h1><h2 id="子节点-‘-gt-’"><a href="#子节点-‘-gt-’" class="headerlink" title="子节点 ‘&gt;’"></a>子节点 ‘&gt;’</h2><ul>
<li>语法：</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">div&gt;ul&gt;li</span><br></pre></td></tr></table></figure>
<ul>
<li>结果：</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">&lt;div&gt;</span><br><span class="line">	&lt;ul&gt;</span><br><span class="line">		&lt;li&gt;&lt;/li&gt;</span><br><span class="line">	&lt;/ul&gt;</span><br><span class="line">&lt;/div&gt;</span><br></pre></td></tr></table></figure>
<h2 id="兄弟节点-‘-’"><a href="#兄弟节点-‘-’" class="headerlink" title="兄弟节点 ‘+’"></a>兄弟节点 ‘+’</h2><ul>
<li>语法：</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">div+p</span><br></pre></td></tr></table></figure>
<ul>
<li>结果：</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">&lt;div&gt;&lt;/div&gt;</span><br><span class="line">&lt;p&gt;&lt;/p&gt;</span><br></pre></td></tr></table></figure>
<h2 id="上线节点-‘-’"><a href="#上线节点-‘-’" class="headerlink" title="上线节点 ‘^’"></a>上线节点 ‘^’</h2><ul>
<li>语法：</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">div&gt;p&gt;span^b</span><br></pre></td></tr></table></figure>
<ul>
<li>结果：</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">&lt;div&gt;</span><br><span class="line">	&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;</span><br><span class="line">	&lt;b&gt;&lt;/b&gt;</span><br><span class="line">&lt;/div&gt;</span><br></pre></td></tr></table></figure>
<h1 id="类和ID"><a href="#类和ID" class="headerlink" title="类和ID"></a>类和ID</h1><h2 id="ID-‘-’"><a href="#ID-‘-’" class="headerlink" title="ID ‘#’"></a>ID ‘#’</h2><ul>
<li>语法：</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">div#page</span><br></pre></td></tr></table></figure>
<ul>
<li>结果：</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">&lt;div id=&quot;page&quot;&gt;&lt;/div&gt;</span><br></pre></td></tr></table></figure>
<h2 id="class-‘-’"><a href="#class-‘-’" class="headerlink" title="class ‘.’"></a>class ‘.’</h2><ul>
<li>语法：</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">div.page</span><br></pre></td></tr></table></figure>
<ul>
<li>结果：</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">&lt;div class=&quot;page&quot;&gt;&lt;/div&gt;</span><br></pre></td></tr></table></figure>
<h2 id="‘-class-id’"><a href="#‘-class-id’" class="headerlink" title="‘.class#id’"></a>‘.class#id’</h2><ul>
<li>语法</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">div.class#id</span><br></pre></td></tr></table></figure>
<ul>
<li>结果：</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">&lt;div class=&quot;class&quot; id=&quot;id&quot;&gt;&lt;/div&gt;</span><br></pre></td></tr></table></figure>
<h2 id="‘-class-class’"><a href="#‘-class-class’" class="headerlink" title="‘.class.class’"></a>‘.class.class’</h2><ul>
<li>语法</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">div.class.class</span><br></pre></td></tr></table></figure>
<ul>
<li>结果：</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">&lt;div class=&quot;class class&quot;&gt;&lt;/div&gt;</span><br></pre></td></tr></table></figure>
<h1 id="算法"><a href="#算法" class="headerlink" title="算法"></a>算法</h1><h2 id="次数-‘-‘"><a href="#次数-‘-‘" class="headerlink" title="次数 ‘*‘"></a>次数 ‘<code>*</code>‘</h2><ul>
<li>语法：</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ul&gt;li*3</span><br></pre></td></tr></table></figure>
<ul>
<li>结果：</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">&lt;ul&gt;</span><br><span class="line">	&lt;li&gt;&lt;/li&gt;</span><br><span class="line">	&lt;li&gt;&lt;/li&gt;</span><br><span class="line">	&lt;li&gt;&lt;/li&gt;</span><br><span class="line">&lt;/ul&gt;</span><br></pre></td></tr></table></figure>
<h2 id="分组-‘-’"><a href="#分组-‘-’" class="headerlink" title="分组 ‘()’"></a>分组 ‘()’</h2><ul>
<li>语法：</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">div&gt;(header&gt;ul&gt;li*2)+footer&gt;p</span><br></pre></td></tr></table></figure>
<ul>
<li>结果：</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line">&lt;div&gt;</span><br><span class="line">	&lt;header&gt;</span><br><span class="line">		&lt;ul&gt;</span><br><span class="line">			&lt;li&gt;&lt;/li&gt;</span><br><span class="line">			&lt;li&gt;&lt;/li&gt;</span><br><span class="line">		&lt;/ul&gt;</span><br><span class="line">	&lt;/header&gt;</span><br><span class="line">	&lt;footer&gt;</span><br><span class="line">		&lt;p&gt;&lt;/p&gt;</span><br><span class="line">	&lt;/footer&gt;</span><br><span class="line">&lt;/div&gt;</span><br></pre></td></tr></table></figure>
<h2 id="编号-‘-’"><a href="#编号-‘-’" class="headerlink" title="编号 ‘$’"></a>编号 ‘$’</h2><ul>
<li>语法：</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ul&gt;li.item$$$*3</span><br></pre></td></tr></table></figure>
<ul>
<li>结果：</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">&lt;ul&gt;</span><br><span class="line">	&lt;li class=&quot;item001&quot;&gt;&lt;/li&gt;</span><br><span class="line">	&lt;li class=&quot;item002&quot;&gt;&lt;/li&gt;</span><br><span class="line">	&lt;li class=&quot;item003&quot;&gt;&lt;/li&gt;</span><br><span class="line">&lt;/ul&gt;</span><br></pre></td></tr></table></figure>
<h1 id="属性"><a href="#属性" class="headerlink" title="属性"></a>属性</h1><h2 id="自定义属性-‘-attr-’"><a href="#自定义属性-‘-attr-’" class="headerlink" title="自定义属性 ‘[attr]’"></a>自定义属性 ‘[attr]’</h2><ul>
<li>语法：</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">td[title=&quot;hello&quot; colspan=3]</span><br><span class="line">a[href=&apos;www.baidu.com&apos; target=&apos;_blank&apos;]</span><br></pre></td></tr></table></figure>
<ul>
<li>结果：</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">&lt;td title=&quot;hello&quot; colspan=&quot;3&quot;&gt;&lt;/td&gt;</span><br><span class="line">&lt;a href=&quot;www.baidu.com&quot; target=&quot;_blank&quot;&gt;&lt;/a&gt;</span><br></pre></td></tr></table></figure>
<h2 id="改变编号基数和方向-‘-‘"><a href="#改变编号基数和方向-‘-‘" class="headerlink" title="改变编号基数和方向 ‘$@-‘"></a>改变编号基数和方向 ‘$@-‘</h2><ul>
<li>语法：</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">ul&gt;li.item$@-5*4</span><br><span class="line">ul&gt;li.item$@3*4</span><br></pre></td></tr></table></figure>
<ul>
<li>结果：</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><span class="line">&lt;ul&gt;</span><br><span class="line">	&lt;li class=&quot;item8&quot;&gt;&lt;/li&gt;</span><br><span class="line">	&lt;li class=&quot;item7&quot;&gt;&lt;/li&gt;</span><br><span class="line">	&lt;li class=&quot;item6&quot;&gt;&lt;/li&gt;</span><br><span class="line">	&lt;li class=&quot;item5&quot;&gt;&lt;/li&gt;</span><br><span class="line">&lt;/ul&gt;</span><br><span class="line"></span><br><span class="line">&lt;ul&gt;</span><br><span class="line">	&lt;li class=&quot;item3&quot;&gt;&lt;/li&gt;</span><br><span class="line">	&lt;li class=&quot;item4&quot;&gt;&lt;/li&gt;</span><br><span class="line">	&lt;li class=&quot;item5&quot;&gt;&lt;/li&gt;</span><br><span class="line">	&lt;li class=&quot;item6&quot;&gt;&lt;/li&gt;</span><br><span class="line">&lt;/ul&gt;</span><br></pre></td></tr></table></figure>
<h1 id="文本-‘-’"><a href="#文本-‘-’" class="headerlink" title="文本 ‘{}’"></a>文本 ‘{}’</h1><ul>
<li>语法：</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">div&#123;click me&#125;</span><br><span class="line">p&gt;&#123;click&#125;+a&#123;here&#125;+&#123;continue&#125;</span><br></pre></td></tr></table></figure>
<ul>
<li>结果：</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">&lt;div&gt;click me&lt;/div&gt;</span><br><span class="line">&lt;p&gt;click&lt;a href=&quot;&quot;&gt;here&lt;/a&gt;continue&lt;/p&gt;</span><br></pre></td></tr></table></figure>
<h1 id="隐式标签"><a href="#隐式标签" class="headerlink" title="隐式标签"></a>隐式标签</h1><ul>
<li>语法：</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ul&gt;.test*3</span><br></pre></td></tr></table></figure>
<ul>
<li>结果：</li>
</ul>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">&lt;ul&gt;</span><br><span class="line">	&lt;li class=&quot;test&quot;&gt;&lt;/li&gt;</span><br><span class="line">	&lt;li class=&quot;test&quot;&gt;&lt;/li&gt;</span><br><span class="line">	&lt;li class=&quot;test&quot;&gt;&lt;/li&gt;</span><br><span class="line">&lt;/ul&gt;</span><br></pre></td></tr></table></figure>
<h1 id="其它"><a href="#其它" class="headerlink" title="其它"></a>其它</h1><p><strong>不能有空格</strong></p>
<p>练习</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">div#invest&gt;head-custom+div.balance&gt;div.center&gt;div.assetle.l&gt;ul.manner_left&gt;li.row.rows&gt;span.row_left.l+a.row_middle.l&#123;商品管理&#125;^^^div.l.wind&gt;div.windright&gt;div.topHead&gt;p.l.text&#123;结算管理-列表&#125;^div.notice&gt;p.eggs.l+p.l.writing^div.end&gt;div.topend&gt;div.topLeft.l&gt;p.l.finish&#123;起止时间&#125;+p.l.totals&#123;起止时间&#125;^div.topmiddle.l&gt;div&gt;sivable&gt;p.cashes&#123;店铺应收金额&#125;^div.nesting&gt;p*4^^div.topright&gt;p.l.period&#123;本期应结&#125;+p.l.state&#123;结算状态&#125;</span><br></pre></td></tr></table></figure>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br></pre></td><td class="code"><pre><span class="line">&lt;div id=&quot;invest&quot;&gt;</span><br><span class="line">	&lt;head-custom&gt;&lt;/head-custom&gt;</span><br><span class="line">	&lt;div class=&quot;balance&quot;&gt;</span><br><span class="line">		&lt;div class=&quot;center&quot;&gt;</span><br><span class="line">			&lt;div class=&quot;assetle l&quot;&gt;</span><br><span class="line">				&lt;ul class=&quot;manner_left&quot;&gt;</span><br><span class="line">					&lt;li class=&quot;row rows&quot;&gt;&lt;span class=&quot;row_left l&quot;&gt;&lt;/span&gt;&lt;a href=&quot;&quot; class=&quot;row_middle l&quot;&gt;商品管理&lt;/a&gt;&lt;/li&gt;</span><br><span class="line">				&lt;/ul&gt;</span><br><span class="line">			&lt;/div&gt;</span><br><span class="line">			&lt;div class=&quot;l wind&quot;&gt;</span><br><span class="line">				&lt;div class=&quot;windright&quot;&gt;</span><br><span class="line">					&lt;div class=&quot;topHead&quot;&gt;</span><br><span class="line">						&lt;p class=&quot;l text&quot;&gt;结算管理-列表&lt;/p&gt;</span><br><span class="line">					&lt;/div&gt;</span><br><span class="line">					&lt;div class=&quot;notice&quot;&gt;</span><br><span class="line">						&lt;p class=&quot;eggs l&quot;&gt;&lt;/p&gt;</span><br><span class="line">						&lt;p class=&quot;l writing&quot;&gt;&lt;/p&gt;</span><br><span class="line">					&lt;/div&gt;</span><br><span class="line">					&lt;div class=&quot;end&quot;&gt;</span><br><span class="line">						&lt;div class=&quot;topend&quot;&gt;</span><br><span class="line">							&lt;div class=&quot;topLeft l&quot;&gt;</span><br><span class="line">								&lt;p class=&quot;l finish&quot;&gt;起止时间&lt;/p&gt;</span><br><span class="line">								&lt;p class=&quot;l totals&quot;&gt;起止时间&lt;/p&gt;</span><br><span class="line">							&lt;/div&gt;</span><br><span class="line">							&lt;div class=&quot;topmiddle l&quot;&gt;</span><br><span class="line">								&lt;div&gt;</span><br><span class="line">									&lt;sivable&gt;</span><br><span class="line">										&lt;p class=&quot;cashes&quot;&gt;店铺应收金额&lt;/p&gt;</span><br><span class="line">									&lt;/sivable&gt;</span><br><span class="line">									&lt;div class=&quot;nesting&quot;&gt;</span><br><span class="line">										&lt;p&gt;&lt;/p&gt;</span><br><span class="line">										&lt;p&gt;&lt;/p&gt;</span><br><span class="line">										&lt;p&gt;&lt;/p&gt;</span><br><span class="line">										&lt;p&gt;&lt;/p&gt;</span><br><span class="line">									&lt;/div&gt;</span><br><span class="line">								&lt;/div&gt;</span><br><span class="line">								&lt;div class=&quot;topright&quot;&gt;</span><br><span class="line">									&lt;p class=&quot;l period&quot;&gt;本期应结&lt;/p&gt;</span><br><span class="line">									&lt;p class=&quot;l state&quot;&gt;结算状态&lt;/p&gt;</span><br><span class="line">								&lt;/div&gt;</span><br><span class="line">							&lt;/div&gt;</span><br><span class="line">						&lt;/div&gt;</span><br><span class="line">					&lt;/div&gt;</span><br><span class="line">				&lt;/div&gt;</span><br><span class="line">			&lt;/div&gt;</span><br><span class="line">		&lt;/div&gt;</span><br><span class="line">	&lt;/div&gt;</span><br><span class="line">&lt;/div&gt;</span><br></pre></td></tr></table></figure>
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2018/04/26/《动物庄园》/" rel="next" title="《动物庄园》">
                <i class="fa fa-chevron-left"></i> 《动物庄园》
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2018/05/09/《男人来自火星，女人来自金星》/" rel="prev" title="《男人来自火星，女人来自金星》">
                《男人来自火星，女人来自金星》 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  
    <div class="comments" id="comments">
      <div id="lv-container" data-id="city" data-uid="MTAyMC8zODk2OC8xNTQ5Ng=="></div>
    </div>

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image" src="https://upload.jianshu.io/users/upload_avatars/830956/debe5156eed7?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240" alt="彭丹丹">
            
              <p class="site-author-name" itemprop="name">彭丹丹</p>
              <p class="site-description motion-element" itemprop="description"></p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/archives">
              
                  <span class="site-state-item-count">183</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/categories/index.html">
                  <span class="site-state-item-count">3</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            

          </nav>

          

          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#DOM添加"><span class="nav-number">1.</span> <span class="nav-text">DOM添加</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#子节点-‘-gt-’"><span class="nav-number">1.1.</span> <span class="nav-text">子节点 ‘&gt;’</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#兄弟节点-‘-’"><span class="nav-number">1.2.</span> <span class="nav-text">兄弟节点 ‘+’</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#上线节点-‘-’"><span class="nav-number">1.3.</span> <span class="nav-text">上线节点 ‘^’</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#类和ID"><span class="nav-number">2.</span> <span class="nav-text">类和ID</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#ID-‘-’"><span class="nav-number">2.1.</span> <span class="nav-text">ID ‘#’</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#class-‘-’"><span class="nav-number">2.2.</span> <span class="nav-text">class ‘.’</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#‘-class-id’"><span class="nav-number">2.3.</span> <span class="nav-text">‘.class#id’</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#‘-class-class’"><span class="nav-number">2.4.</span> <span class="nav-text">‘.class.class’</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#算法"><span class="nav-number">3.</span> <span class="nav-text">算法</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#次数-‘-‘"><span class="nav-number">3.1.</span> <span class="nav-text">次数 ‘*‘</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#分组-‘-’"><span class="nav-number">3.2.</span> <span class="nav-text">分组 ‘()’</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#编号-‘-’"><span class="nav-number">3.3.</span> <span class="nav-text">编号 ‘$’</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#属性"><span class="nav-number">4.</span> <span class="nav-text">属性</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#自定义属性-‘-attr-’"><span class="nav-number">4.1.</span> <span class="nav-text">自定义属性 ‘[attr]’</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#改变编号基数和方向-‘-‘"><span class="nav-number">4.2.</span> <span class="nav-text">改变编号基数和方向 ‘$@-‘</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#文本-‘-’"><span class="nav-number">5.</span> <span class="nav-text">文本 ‘{}’</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#隐式标签"><span class="nav-number">6.</span> <span class="nav-text">隐式标签</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#其它"><span class="nav-number">7.</span> <span class="nav-text">其它</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<div class="copyright">&copy; <span itemprop="copyrightYear">2020</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">彭丹丹</span>

  
</div>


	<div class="powered-by">
	<i class="fa fa-user-md"></i><span id="busuanzi_container_site_uv">
	  本站访客数:<span id="busuanzi_value_site_uv"></span>
	</span>
	</div>
  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Pisces</a> v5.1.4</div>




        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  
    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.4"></script>



  
  


  <script type="text/javascript" src="/js/src/affix.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/schemes/pisces.js?v=5.1.4"></script>



  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  
    <script type="text/javascript">
      (function(d, s) {
        var j, e = d.getElementsByTagName(s)[0];
        if (typeof LivereTower === 'function') { return; }
        j = d.createElement(s);
        j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
        j.async = true;
        e.parentNode.insertBefore(j, e);
      })(document, 'script');
    </script>
  












  





  

  

  

  
  

  

  

  

  undefined
  
  <!-- 页面爆炸效果 -->
  
<script src="/live2dw/lib/L2Dwidget.min.js?0c58a1486de42ac6cc1c59c7d98ae887"></script><script>L2Dwidget.init({"pluginRootPath":"live2dw/","pluginJsPath":"lib/","pluginModelPath":"assets/","tagMode":false,"debug":false,"model":{"jsonPath":"/live2dw/assets/tororo.model.json"},"display":{"position":"right","width":150,"height":300},"mobile":{"show":true}});</script></body>
</html>
